<div class="slider-wrapper">
	<div class="slider">
		<div class="slider-inner">
			<div class="row">
				<div class="span5 images"><?php if($featured_listings) { ?>
					<div class='iosSlider'>
						<div class='slider-content'>
							<?php foreach ($featured_listings as $media) {  ?>
							<div class="slide">
								<?php if(isset($media['proMedia']->FileName) && isset($media['proMedia']->FileExtension)) { ?>
									<a href="<?php echo $media['href']; ?>"><img src="<?php echo $this->config->item('HTTP_LISTING_MEDIA_IMAGE') . $media['ID'] . '/' . $media['proMedia']->FileName . LANDSCAPE_PREMIUM_DIMENSION . $media['proMedia']->FileExtension; ?>" alt="<?php echo $media['ProjectName']; ?>" width="<?php echo $media['width']; ?>" height="<?php echo $media['height']; ?>"></a> 
								<?php } else { ?> 
									<img src="<?php echo $this->config->item('HTTP_IMAGE'); ?>tmp/no-image-premium.png" alt=""> 
								<?php } ?>
								<div class="slider-info">
									<h2><a href="<?php echo $media['href']; ?>"><?php echo $media['ProjectName']; ?></a></h2>
								</div>
								<!-- /.slider-info -->
							</div>
							<!-- /.slide --> 
							<?php } ?>
						</div>
						<!-- /.slider-content -->
					</div>
					<ul class="navigation">
					<?php $count = 0; ?>
					<?php foreach ($featured_listings as $media) {  ?>
					<?php
					$count++;
					if($count == 1) { ?>
						<li class="active"><a><?php echo $count; ?></a></li>
						<?php } else { ?>
						<li><a><?php echo $count; ?></a></li>
						<?php } ?>
						<?php } ?>
					</ul>
					<!-- /.navigation--> 
					<?php } else { ?> 
						<img src="<?php echo $this->config->item('HTTP_IMAGE'); ?>tmp/no-image-premium.png" alt=""> 
					<?php } ?>
				</div>
				<!-- /.span5 -->
				<div class="span4"><?php $this->load->view('helpers/widgets/search-form.php'); ?>
				</div>
				<!-- /.span4 -->
			<div class="span3"><?php $this->load->view('helpers/widgets/member-login.php'); ?>
			</div>
			<!-- /.span3 --></div>
		<!-- /.row --></div>
	<!-- /.slider-inner --></div>
<!-- /.slider --></div>
<!-- /.slider-wrapper -->
